package com.dream.fly.juststartpractice.config;

/**
 * @author: 熊海梦
 * @date: 2018/11/8 15:13
 **/
public class BizException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    private final Integer code;

    /**
     * 错误信息
     */
    private final String message;

    public BizException(Integer code,String message){
        super();
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
